package com.xv.service;

import com.xv.dao.DeptMapper;
import com.xv.pojo.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("DepartmentServiceImp")
public class DepartmentServiceImp implements DepartmentService{
    @Autowired
    private DeptMapper deptMapper;
    public List<Dept> getDepts() {
        List<Dept> list = deptMapper.selectByExample(null);
        return list;
    }
}
